package shared.highcharts.config

import dataclass.data
import java.lang.{Double => JDouble}

@data class YAxis(
                   title: Option[YAxisTitle],
                   labels: Option[Labels],
                   min: Option[Double],
                 )

object YAxis {
  def apply(
             title: YAxisTitle = null,
             labels: Labels = null,
             min: JDouble = null,
           ) = new YAxis(
    Option(title),
    Option(labels),
    Option(min).map(x => x: Double),
  )
}
